﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Security;
using System.Xml.Serialization;

namespace viBook.Models
{
    public class User
    {
        [Required]
        public int Id { get; set; }
        [Required]
        public string Email { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string Lastname { get; set; }
        public string Firstname { get; set; }
        public DateTime? DOB { get; set; }
        public DateTime JoinedDate { get; set; }
        public DateTime? LastJoined { get; set; }
        public string Country { get; set; }
        public string Status { get; set; }
        public string AvatarUrl { get; set; }
        public bool Sex { get; set; }
        public string Address { get; set; }
        public string Interest { get; set; }
        public bool IsExternal { get; set; }
        public bool IsAdmin { get; set; }
        public bool IsBlocked { get; set; }
        public string ValidationCode { get; set; }

        public virtual IEnumerable<Book> UploadedBooks { get; set; }
        
    }
}